<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectsTable extends Migration
{
	public function up()
	{
		Schema::create('projects', function($table)
		{
			$table->increments('id');
			$table->string('name', 60);
			$table->integer('user_id')->unsigned();
			$table->foreign('user_id')->references('id')->on('users');
			$table->timestamps();
		});
	}

	public function down()
	{
		Schema::drop('projects');
	}
}
